package com.dotc.kotlinmvvmdemo.viewModel

import android.R
import android.app.Activity
import android.app.Application
import androidx.databinding.ObservableField
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.dotc.kotlinmvvmdemo.NewFragment.MainFragment
import com.dotc.kotlinmvvmdemo.base.BaseViewModel


/**
 * 主页面NewMainViewModel
 */
class NewMainViewModel(application: Application) : BaseViewModel(application) {
    var  context :Activity? = null
    val Key = ObservableField<String>("呵呵呵呵")
    init {
        Key.set("***欢迎进入MVVM封装页面***")
    }
    init {
        //只初始化一次
    }

    override fun onCreate() {
        super.onCreate()
    }




}